﻿<UserControl x:Class="ReplicationExplorer.UserControls.GenericView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:pg="http://schemas.denisvuyka.wordpress.com/wpfpropertygrid"    
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid >
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="50" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <WrapPanel Orientation="Horizontal" Grid.Row="0" Grid.Column="0">
            <Image Name="imgObjectIcon"  Margin="5" />
            <TextBlock Name="tbName" FontWeight="Bold" FontSize="14" Foreground="Gray" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5"></TextBlock>
        </WrapPanel>

        <pg:PropertyGrid x:Name="propertyGrid" Grid.Row="1" Grid.Column="0" Margin="5" 
                     PropertyDisplayMode="All" Visibility="Visible" 
                     ShowReadOnlyProperties="True" VerticalAlignment="Stretch" FontWeight="Normal">
            <pg:PropertyGrid.Layout>
                <pg:CategorizedLayout />
            </pg:PropertyGrid.Layout>

        </pg:PropertyGrid>
    </Grid>
</UserControl>
